namespace DataAccess.Services.Constants
{
	public class RoleEnum : LookupEntity<string, int>
	{
		private static RoleEnum instance;
		
		private RoleEnum() : base(new ServiceManager().Roles.GetRoleIdByRoleName)
		{}

		public static RoleEnum Instance
		{
			get
			{
				if(instance == null)
				{
					instance = new RoleEnum();
				}

				return instance;
			}
		}

		public int Client
		{
			get { return Get("Client"); }
		}

		public int Application
		{
			get { return Get("Application"); }
		}

		public int BankEmployee
		{
			get { return Get("BankEmployee"); }
		}
	}
}